<?php
if(!defined('DEDEINC'))
{
    exit("Request Error!");
}
require_once(DEDEINC.'/enums.func.php');
/**
 * 返回院校的搜索栏。
 * by HehongChen
 * 2014.11.5
 */
function lib_collegesearch(&$ctag,&$refObj)
{
	
    global $dsql;
    $revalue = "<select name=\"search_area\"><option value=\"0\">地区</option>";
    $area = getTopData('area');
    foreach ($area as $key => $value) {
        $revalue .= "<option value='".$key."'>$value</option>";
    }
    $revalue .="</select>";
    $revalue .= "<select name =\"search_feerange\"><option value=\"0\">学费</option>";
    $fee_range = getTopData('feeRange');
    foreach ($fee_range as $key => $value) {
        $revalue .= "<option value='".$key."'>$value</option>";
    }
    $revalue .="</select>";
    $revalue .= "<select name=\"search_projecttype\"><option value=\"0\">项目类型</option>";
    $project_type = getTopData('projectType');
    foreach ($project_type as $key => $value) {
        $revalue .= "<option value='".$key."'>$value</option>";
    }
    $revalue .="</select>";
    return $revalue;
}